package cn.maidouya.org.domain;

import cn.maidouya.basic.domain.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Department  extends BaseDomain {
    /** 部门id*/
    /** 部门编号 */
    private String sn;
    private String name;
    private String dirPath;
    private Integer state;
    /** 部门id 对应员工 */
    private Long manager_id;
    /** 部门经理id*/
    private Employee manager;
    /** 上一级部门id */
    private Long parent_id;
    /** 上一级部门领导*/
    private Department parent;
    // 部门上下级关系
    private List<Department> children =  new ArrayList<>();
}